﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User/User.Master" AutoEventWireup="true" CodeBehind="WLProperty.aspx.cs" Inherits="CoolERP_Web.User.WLProperty" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">

</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate> 
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td class=tbHead_L></td>
        <td class=tbHead_M><div><b>物料属性定义</b></div></td>
        <td class=tbHead_R></td>
    </tr>
    <tr>
        <td class=tbBody_L></td>
        <td class=tbBody_M>
            <table width=100% border=0>
                <tr><td colspan=2><asp:ImageButton ID="btnAdd" runat="server" OnClick="btnAdd_Click" ImageUrl="~/Images/Common/btn_add0.png" />
                    <asp:ImageButton ID="btnDel" runat="server" ImageUrl="~/Images/Common/btn_del0.png" OnClick="btnDel_Click" OnClientClick="return isCheck('GridView1');" /></td></tr>
                <tr>
                    <td valign=top style="border:solid 1px #00CC00; background-color:White; width:300px; color:#528311">
                        <asp:TreeView ID="tvWL" runat="server" AutoGenerateDataBindings="False" ExpandDepth="0" Height="90%" 
                            OnSelectedNodeChanged="tvWL_SelectedNodeChanged" OnTreeNodeExpanded="tvWL_TreeNodeExpanded">
                        <SelectedNodeStyle Font-Bold=true />
                        <NodeStyle ForeColor="#528311" />
                        </asp:TreeView>
                    </td>
                    <td valign=top style="padding-left:30px">
                        <asp:GridView ID="GridView1" Width=500px runat="server" CssClass="grvCSS" AutoGenerateColumns="False" AllowPaging="True"
                            PageSize=100 ClientIDMode=Static OnRowDataBound="GridView1_RowDataBound" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnPreRender="GridView1_PreRender">
                        <Columns>
                            <asp:TemplateField ShowHeader="False">
                                <HeaderTemplate><label><input type="checkbox" onclick="checkAll('GridView1',this)" />全选</label></HeaderTemplate>
                                <ItemTemplate><input type=checkbox id="chkSel" name="chkSel" runat=server /></ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="类型编号">
                                <ItemTemplate><%# Eval("BH") %></ItemTemplate>
                                <EditItemTemplate><%# Eval("BH")%></EditItemTemplate>
                                <FooterTemplate><asp:TextBox ID="txtBH" runat="server" MaxLength=2 Width=30px></asp:TextBox></FooterTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="类型名称">
                                <ItemTemplate><%# Eval("MC")%></ItemTemplate>
                                <EditItemTemplate><asp:TextBox ID="txtMC" runat="server" Text='<%# Eval("MC")%>'/></EditItemTemplate>
                                <FooterTemplate><asp:TextBox ID="txtMC" runat="server"></asp:TextBox></FooterTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="操作">
                                <ItemTemplate><asp:ImageButton ID="btnEdit" runat="server" ImageUrl="~/Images/Common/btn_edit0.png" CommandName="Edit" /></ItemTemplate>
                                <EditItemTemplate><asp:HiddenField ID="hidField" runat=server />
                                <asp:ImageButton ID="btnSave" runat="server" ImageUrl="~/Images/Common/btn_save0.png" CommandName="Update" />&nbsp;
                                <asp:ImageButton ID="btnCancel" runat="server" ImageUrl="~/Images/Common/btn_cancel0.png" CommandName="Cancel" />
                                </EditItemTemplate>
                                <FooterTemplate>
                                    <asp:ImageButton ID="btnSave" runat="server" ImageUrl="~/Images/Common/btn_save0.png" OnClick="btnSave_Click" />&nbsp;
                                    <asp:ImageButton ID="btnCancel" runat="server" ImageUrl="~/Images/Common/btn_cancel0.png" OnClick="btnCancel_Click" />
                                </FooterTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerSettings Visible=false />
                        </asp:GridView>
                        <table border=0>
                            <tr>
                                <td></td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
        <td class=tbBody_R></td>
    </tr>
    <tr>
        <td class=tbFoot_L></td>
        <td class=tbFoot_M></td>
        <td class=tbFoot_R></td>
    </tr>
</table>
</ContentTemplate>
<Triggers>
    <asp:AsyncPostBackTrigger ControlID="btnAdd" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
</asp:Content>
